# -*- coding: utf-8 -*-
# @File  : 参数化和pytest的param.py
# @Author: zbh
# @Date  : 2025/6/5_16:26

# 为特定参数设置标记或者权重，比如跳过，逾期失败，

import pytest

@pytest.mark.parametrize("input,expected",
                         [
                             (1,2),
                             pytest.param(2,5,marks=pytest.mark.xfail(reason="已知问题")),
                             (3,4),
                         ])



def test_increment(input,expected):
    assert input + 1 == expected


if __name__ == '__main__':
    pytest.main(['-s','参数化和pytest的param.py'])



